﻿@{
    Layout = "_Layout.cshtml";
}
@using YaHall.Server;
@{
    string title = "";
    string content = "没有找到您的需要的内容";
    string cat=string.Empty;
    int id=0;
    DateTime? post_date = null;
    dynamic catCurrent=null,catPic=null;
    dynamic cat1=null, cat2=null,cat3=null;
    try
    {
        id = int.Parse(Request["id"]);
        cat = Request["cat"];
        Page.Cat=cat;
        Page.Title = "雅好网-资讯-"+cat;
        var info = Facade.GetInfoById(id);
        title = HttpUtility.HtmlDecode(info.post_title);
        content = HttpUtility.HtmlDecode(info.post_content);
        post_date = info.post_date;
        var yijiezixun = Facade.GetInfoList(5);
        var shipingyaowen = Facade.GetInfoList(6);
        var touzidongtai = Facade.GetInfoList(7);
        var gundongxinwen = Facade.GetInfoList(35);
        var tupianxinwen = Facade.GetInfoList(32);
        switch (cat)
        {
            case "艺界资讯":
                catCurrent = yijiezixun;
                catPic = Facade.GetPicInfoList(5).FirstOrDefault();
                cat1 = shipingyaowen;
                cat2 = touzidongtai;
                break;

            case "时评要闻":
                catCurrent = shipingyaowen;
                catPic = Facade.GetPicInfoList(6).FirstOrDefault();
                cat1 = yijiezixun;
                cat2 = touzidongtai;
                break;


            case "投资动态":
                catCurrent = touzidongtai;
                catPic = Facade.GetPicInfoList(7).FirstOrDefault();
                cat1 = yijiezixun;
                cat2 = shipingyaowen;
                break;

            case "滚动新闻":
                catCurrent = gundongxinwen;
                catPic = Facade.GetPicInfoList(35).FirstOrDefault();
                cat1 = yijiezixun;
                cat2 = shipingyaowen;
                cat3 = touzidongtai;
                break;
            case "图片新闻":
                catCurrent = tupianxinwen;
                catPic = Facade.GetPicInfoList(32).FirstOrDefault();
                cat1 = yijiezixun;
                cat2 = shipingyaowen;
                cat3 = touzidongtai;
                break;
            default:
                catCurrent = tupianxinwen;
                catPic = Facade.GetPicInfoList(32).FirstOrDefault();
                cat1 = yijiezixun;
                cat2 = shipingyaowen;
                cat3 = touzidongtai;
                break;
        }
    }
    catch { }
    
}
@section head {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../Css/news.css" rel="stylesheet" type="text/css" />
}

<div class="bodymain over cl">
	<div class="bodymain-fl fl">
    	<div class="bodycon over">
        	<div class="newtit tc">@title</div>
            <div class="subtit cl">
            	<div class="time fl tc">@post_date</div>
                <div class="source fl">来源：互联网</div>
                <div class="comment fr">
                	<div class="comment-con cl">
                    	<div class="comment-con-fl fl"><a href="#">查看评论（<span class="red">0</span>）</a></div>
                        <div class="comment-con-fr fr"><a href="#">好文我顶（<span class="red">0</span>）</a></div>
                    </div>
                </div>
            </div>
            <!--正文开始-->
            <div class="bodyText over">
            @{var html = new HtmlString(content);
              @html
              }
            </div>
            <!--正文结束-->
        </div>
    </div>
    <div class="bodymain-fr fr">
    	<!--艺术生活 开始-->
        <div class="bodyright over">
        	<div class="bodyright-tit fB E4">艺术生活</div>
            <div class="bodyright-con over"><img src="@(catPic==null?"":"http://info.yahall.com/wp-content/uploads/"+catPic.image)" width="356" height="250" /></div>
            <div class="yssh-list mar">
            	<ul>


                @for (int i = 0; i < 2; i++)
                {
                    <li>[@cat] <a href="#">@Facade.GetTitle(catCurrent[i])</a></li>
                }
                </ul>
            </div>
        </div>
        <!--艺术生活 结束-->
        <div class="line4px"></div>
        <!--艺界视点 开始-->
        <!--
        <div class="bodyright over">
        	<div class="bodyright-tit fB E4">艺界视点</div>
            <div class="bodyfrcon over">
            	<div class="video">
                	<ul>
                    	<li>
                        	<div class="video-pic"><img src="../pic/pic38.gif" width="102" height="70" /></div>
                            <div class="video-tit"><a href="#">赚钱时机</a></div>
                        </li>
                        <li>
                        	<div class="video-pic"><img src="../pic/pic38.gif" width="102" height="70" /></div>
                            <div class="video-tit"><a href="#">赚钱时机</a></div>
                        </li>
                        <li>
                        	<div class="video-pic"><img src="../pic/pic38.gif" width="102" height="70" /></div>
                            <div class="video-tit"><a href="#">赚钱时机</a></div>
                        </li>
                    </ul>
                </div>
                <div class="video-list">
                	<ul>
                    	<li>[<span class="E4">大家谈</span>] <a href="#">陈  伟：市场回调 难俺热点</a></li>
                        <li>[<span class="E4">大家谈</span>] <a href="#">陈  伟：市场回调 难俺热点</a></li>
                        <li>[<span class="E4">大家谈</span>] <a href="#">陈  伟：市场回调 难俺热点 市场回调 市场回调</a></li>
                    </ul>
                </div>
            </div>
        </div>
        -->
        <!--艺界视点 结束-->
        <div class="line4px"></div>
        <!--个人门户 开始-->
        <!--
        <div class="bodyright over">
        	<div class="bodyright-tit fB E4">个人门户</div>
            <div class="bodyfrcon over">
            	<div class="video">
                	<ul>
                    	<li>
                        	<div class="video-pic1"><img src="../pic/pic39.gif" width="102" height="80" /></div>
                            <div class="video-tit"><a href="#">赚钱时机</a></div>
                        </li>
                        <li>
                        	<div class="video-pic1"><img src="../pic/pic39.gif" width="102" height="80" /></div>
                            <div class="video-tit"><a href="#">赚钱时机</a></div>
                        </li>
                        <li>
                        	<div class="video-pic1"><img src="../pic/pic39.gif" width="102" height="80" /></div>
                            <div class="video-tit"><a href="#">赚钱时机</a></div>
                        </li>
                    </ul>
                </div>
                <div class="video-list">
                	<ul>
                    	<li>[<span class="E4">大家谈</span>] <a href="#">陈  伟：市场回调 难俺热点</a></li>
                        <li>[<span class="E4">大家谈</span>] <a href="#">陈  伟：市场回调 难俺热点</a></li>
                        <li>[<span class="E4">大家谈</span>] <a href="#">陈  伟：市场回调 难俺热点 市场回调 市场回调</a></li>
                    </ul>
                </div>
            </div>
        </div>
        -->
        <!--个人门户 结束-->
        <div class="line4px"></div>
        <!--相关微博 开始-->
        <!--
        <div class="bodyright over">
        	<div class="bodyright-tit fB E4">相关微博</div>
            <div class="bodyfrcon over">
            	<div class="blog">
                	<ul>
                    	<li>
                        	<div class="blog-pic fl"><img src="../pic/pic40.gif" width="42" height="42" /></div>
                            <div class="blog-tit fr">相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博</div>
                        </li>
                        <li>
                        	<div class="blog-pic fl"><img src="../pic/pic40.gif" width="42" height="42" /></div>
                            <div class="blog-tit fr">相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博</div>
                        </li>
                        <li>
                        	<div class="blog-pic fl"><img src="../pic/pic40.gif" width="42" height="42" /></div>
                            <div class="blog-tit fr">相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博相关微博</div>
                        </li>
                    </ul>
                </div>
            </div>
    	</div>
        -->
        <!--相关微博 结束-->
        <div class="line4px"></div>
        <!--活动征集 开始-->
        <!--
        <div class="bodyright over">
        	<div class="bodyright-tit fB E4">活动征集</div>
            <div class="bodyfrcon over">
            	<div class="activity">
                	<ul>
                    	<li>· <a href="#">活动征集活动征集活动征集活动征集</a></li>
                        <li>· <a href="#">活动征集活动征集活动征集活动征集活动征集活动征集</a></li>
                        <li>· <a href="#">活动征集活动征集活动征集活动征集</a></li>
                        <li>· <a href="#">活动征集活动征集活动征集活动征集活动征集活动征集</a></li>
                    </ul>
                </div>
            </div>
    	</div>
        -->
        <!--活动征集 结束-->
        <div class="line4px"></div>
        <!--书画风云 开始-->
        <!--
        <div class="bodyright over">
        	<div class="bodyright-tit fB E4">书画风云</div>
            <div class="bodyfrcon over">
            	<div class="picture">
                	<ul>
                    	<li>· <a href="#">书画风云书画风云</a></li>
                        <li>· <a href="#">书画风云书画风云书画风云</a></li>
                        <li>· <a href="#">书画风云d画风云</a></li>
                        <li>· <a href="#">书画风云</a></li>
                    </ul>
                </div>
            </div>
    	</div>
        -->
        <!--书画风云 结束-->
        <div class="line4px"></div>
        <!--广告-->
        <div class="bodyright mar over"><img src="../pic/pic41.gif" width="356" height="100" /></div>
        <!--广告-->
    </div>
</div>